Add CSS node tests for levelbars
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Dec 2015 16:00:32 +0000 (11:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jan 2016 14:19:31 +0000 (09:19 -0500)
testsuite/css/nodes/Makefile.am
testsuite/css/nodes/levelbar.nodes [new file with mode: 0644]
testsuite/css/nodes/levelbar.ui [new file with mode: 0644]

index 693489a71db2b3b1235c024ebabdbf422c43fb2b..7f49813f6e63156e0c10b2b5b7f03e83fe27469c 100644 (file)
@@ -27,6 +27,7 @@ test_css_nodes_SOURCES = \
 test_data = \
        buttons.ui      buttons.nodes \
        entries.ui      entries.nodes \
+       levelbar.ui     levelbar.nodes \
        notebook.ui     notebook.nodes \
        progressbar.ui  progressbar.nodes \
        $(NULL)
diff --git a/testsuite/css/nodes/levelbar.nodes b/testsuite/css/nodes/levelbar.nodes
new file mode 100644 (file)
index 0000000..5677022
--- /dev/null
@@ -0,0 +1,55 @@
+window visible=0 state=dir-ltr classes=background
+  decoration visible=1 state=dir-ltr
+  box visible=1 state=dir-ltr classes=vertical
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=high,filled
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=high,filled
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=low,filled
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,discrete
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,discrete
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,discrete
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
diff --git a/testsuite/css/nodes/levelbar.ui b/testsuite/css/nodes/levelbar.ui
new file mode 100644 (file)
index 0000000..1338289
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="inverted">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.8</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">5</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">2</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">8</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>